cd "/media/Environ/Compile/rocksndiamonds-4.1.4.1" && /usr/bin/gdb -- "./rocksndiamonds"
GNU gdb (Debian 8.2.1-2+b3) 8.2.1
Copyright (C) 2018 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
    <http://www.gnu.org/software/gdb/documentation/>.

For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from ./rocksndiamonds...done.
(gdb) r
Starting program: /media/Environ/Compile/rocksndiamonds-4.1.4.1/rocksndiamonds 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7fffe3982700 (LWP 7409)]
[New Thread 0x7fffe3941700 (LWP 7410)]
[New Thread 0x7fffe1a9c700 (LWP 7411)]
rocksndiamonds: frame delay == 15 ms (max. 66 fps / 133 %)
rocksndiamonds: warning: getKeyFromKeyName(): not completely implemented
free(): double free detected in tcache 2

Thread 1 "rocksndiamonds" received signal SIGABRT, Aborted.
__GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
50	../sysdeps/unix/sysv/linux/raise.c: No such file or directory.
(gdb) bt
#0  __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
#1  0x00007ffff78a2535 in __GI_abort () at abort.c:79
#2  0x00007ffff78f9508 in __libc_message (action=action@entry=do_abort, fmt=fmt@entry=0x7ffff7a0428d "%s\n") at ../sysdeps/posix/libc_fatal.c:181
#3  0x00007ffff78ffc1a in malloc_printerr (str=str@entry=0x7ffff7a05f58 "free(): double free detected in tcache 2") at malloc.c:5341
#4  0x00007ffff79016fd in _int_free (av=0x7ffff7a3bc40 <main_arena>, p=0x55555c1409b0, have_lock=<optimized out>) at malloc.c:4193
#5  0x0000555555713b28 in checked_free (ptr=0x55555c1409c0) at misc.c:1275
#6  0x0000555555712b25 in setString (old_value=0x55555869c380 <levelset+4000>, new_value=0x55555c77bb90 "rnd_krystian_abramowicz") at misc.c:844
#7  0x000055555565eb0e in SetLevelSetInfo (identifier=0x55555c77bb90 "rnd_krystian_abramowicz", level_nr=29) at tools.c:9455
#8  0x00005555556e02bb in LoadLevel (nr=29) at files.c:6687
#9  0x0000555555662950 in DrawMainMenu () at screens.c:1624
#10 0x00005555556b31ab in RequestQuitGameExt (skip_request=1, quick_quit=1, message=0x5555557c9d60 "Do you really want to quit the game?") at game.c:15028
#11 0x00005555556b3252 in RequestQuitGame (ask_if_really_quit=0) at game.c:15048
#12 0x000055555564ab24 in HandleKey (key=27, key_status=1) at events.c:2376
#13 0x0000555555648c63 in HandleKeyEvent (event=0x7fffffffd9f0) at events.c:1462
#14 0x0000555555646b84 in HandleEvents () at events.c:249
#15 0x0000555555646d67 in EventLoop () at events.c:348
#16 0x000055555563a1ca in main (argc=1, argv=0x7fffffffdb48) at main.c:7762
(gdb) # was about to restart a level, but it froze instead
(gdb) r
The program being debugged has been started already.
Start it from the beginning? (y or n) y
Starting program: /media/Environ/Compile/rocksndiamonds-4.1.4.1/rocksndiamonds 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7fffe3982700 (LWP 8038)]
[New Thread 0x7fffe3941700 (LWP 8039)]
[New Thread 0x7fffe1a9b700 (LWP 8040)]
rocksndiamonds: frame delay == 0 ms (maximum speed)
malloc(): memory corruption (fast)

Thread 1 "rocksndiamonds" received signal SIGABRT, Aborted.
__GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
50	../sysdeps/unix/sysv/linux/raise.c: No such file or directory.
(gdb) bt
#0  __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
#1  0x00007ffff78a2535 in __GI_abort () at abort.c:79
#2  0x00007ffff78f9508 in __libc_message (action=action@entry=do_abort, fmt=fmt@entry=0x7ffff7a0428d "%s\n") at ../sysdeps/posix/libc_fatal.c:181
#3  0x00007ffff78ffc1a in malloc_printerr (str=str@entry=0x7ffff7a06380 "malloc(): memory corruption (fast)") at malloc.c:5341
#4  0x00007ffff7902f5c in _int_malloc (av=av@entry=0x7ffff7a3bc40 <main_arena>, bytes=bytes@entry=8) at malloc.c:3590
#5  0x00007ffff79051a2 in __libc_calloc (n=<optimized out>, elem_size=<optimized out>) at malloc.c:3428
#6  0x00007fffe1ff5900 in ?? () from /usr/lib/x86_64-linux-gnu/dri/i965_dri.so
#7  0x00007fffe1ff628c in ?? () from /usr/lib/x86_64-linux-gnu/dri/i965_dri.so
#8  0x00007fffe1fc1129 in ?? () from /usr/lib/x86_64-linux-gnu/dri/i965_dri.so
#9  0x00007fffe1fffb4e in ?? () from /usr/lib/x86_64-linux-gnu/dri/i965_dri.so
#10 0x00007fffe2112e14 in ?? () from /usr/lib/x86_64-linux-gnu/dri/i965_dri.so
#11 0x00007fffe21157e0 in ?? () from /usr/lib/x86_64-linux-gnu/dri/i965_dri.so
#12 0x00007fffe2118c88 in ?? () from /usr/lib/x86_64-linux-gnu/dri/i965_dri.so
#13 0x00007ffff7e31812 in ?? () from /usr/lib/x86_64-linux-gnu/libSDL2-2.0.so.0
#14 0x00007ffff7e2bfa3 in ?? () from /usr/lib/x86_64-linux-gnu/libSDL2-2.0.so.0
#15 0x0000555555718720 in UpdateScreenExt (rect=0x7fffffffd920, with_frame_delay=1) at sdl.c:132
#16 0x00005555557188dd in UpdateScreen_WithFrameDelay (rect=0x7fffffffd920) at sdl.c:236
#17 0x0000555555719a75 in SDLCopyArea (src_bitmap=0x555559a837a0, dst_bitmap=0x555559b190a0, src_x=0, src_y=0, width=1920, height=1080, dst_x=0, dst_y=0, mask_mode=0) at sdl.c:912
#18 0x00005555556f67d6 in sysCopyArea (src_bitmap=0x555559a837a0, dst_bitmap=0x555559b190a0, src_x=0, src_y=0, width=1920, height=1080, dst_x=0, dst_y=0, mask_mode=0) at system.c:525
#19 0x00005555556f74ac in BlitBitmap (src_bitmap=0x555559a837a0, dst_bitmap=0x555559b190a0, src_x=0, src_y=0, width=1920, height=1080, dst_x=0, dst_y=0) at system.c:868
#20 0x000055555564cb48 in BackToFront () at tools.c:840
#21 0x0000555555646d88 in EventLoop () at events.c:362
#22 0x000055555563a1ca in main (argc=1, argv=0x7fffffffdb48) at main.c:7762
(gdb) # had just hit the ESC key # The main menu didn't show and the level is still shown
(gdb) 
